package cn.xny.basic.util;

import java.util.ArrayList;
import java.util.List;

public class PageList<T> {
    //当前页的分页数据：
    private List<T> data= new ArrayList<>();
    //总数量
    private Integer totals = 0;
    public PageList() {

    }

    public PageList(List<T> data, Integer totals) {
        this.data = data;
        this.totals = totals;
    }

    public List<T> getData() {
        return data;
    }

    public void setData(List<T> data) {
        this.data = data;
    }

    public Integer getTotals() {
        return totals;
    }

    public void setTotals(Integer totals) {
        this.totals = totals;
    }
}
